using OpenTK.Windowing.GraphicsLibraryFramework;

namespace OpenTK.Windowing.Common
{
	public readonly struct MouseButtonEventArgs
	{
		public MouseButton Button { get; }

		public InputAction Action { get; }

		public KeyModifiers Modifiers { get; }

		public bool IsPressed => Action != InputAction.Release;

		public MouseButtonEventArgs(MouseButton button, InputAction action, KeyModifiers modifiers)
		{
			Button = button;
			Action = action;
			Modifiers = modifiers;
		}
	}
}
